//
//  JYTLoginHandler.h
//  JYT_IOS
//
//  Created by nxa-tankeke on 16/11/17.
//  Copyright © 2016年 com.yuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JYTHttpClient.h"

@interface JYTLoginHandler : NSObject

+ (JYTLoginHandler *) shared;

- (void) loginWithName:(NSString *)name andPwd:(NSString *)pwd completionHandler:(void (^)(BOOL succ)) handler;

- (void) changePwdWithUserName:(NSString *)userName andPhoneNum:(NSString *)phoneNum andPwd:(NSString *)newPwd completionHandler:(void (^)(BOOL succ)) handler;

- (void) changePwd:(NSString *)oldPwd andPwd:(NSString *)newPwd andUserName:(NSString *)userName  completionHandler:(void (^)(BOOL succ)) handler;

- (void) postContent:(NSString *)content andUserName:(NSString *)userName completionHandler:(void (^)(BOOL succ)) handler;
@end
